package com.yangtao.framework.hibernate.dao;

import com.yangtao.framework.hibernate.BaseDao;
import com.yangtao.framework.hibernate.entity.User;
import org.springframework.stereotype.Repository;

/**
 * @author: 杨涛
 * @version: 1.0
 * @date: 11-7-22 下午1:38
 */
@Repository
public class UserDAO extends BaseDao<User> {
	public User load(String id) {
		return getHibernateTemplate().load(entityClass, id);
	}

	public User get(String id) {
		return getHibernateTemplate().get(entityClass, id);
	}
}
